package com.hdsx.jxcsxm.party.server.impl;

import com.hdsx.dao.query.base.BaseOperate;
import com.hdsx.jxcsxm.party.bean.BaseBean;
import com.hdsx.jxcsxm.party.bean.PartyAccessBean;
import com.hdsx.jxcsxm.party.bean.Xmtjbean;
import com.hdsx.jxcsxm.party.server.OriginServer;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 占贤银
 * time 2024/3/5 15:02
 * description 生命之灯因热情而点燃，生命之舟因拼搏而前行
 */
@Service
public class OriginServerImpl extends BaseOperate implements OriginServer {

    public OriginServerImpl() {
        super("partyaccess", "jdbc");
    }

    @Override
    public List<BaseBean> queryJxscxmZjdwAll() {
        List<BaseBean> lists = queryList("queryJxscxmZjdwAll");
        return lists;
    }

    @Override
    public List<BaseBean> queryJxcsxmZjbfAll() {
        List<BaseBean> lists = queryList("queryJxcsxmZjbfAll");
        return lists;
    }

    @Override
    public List<Xmtjbean> queryXmtjAll() {
        return queryList("queryXmtjAll");
    }

    @Override
    public List<Xmtjbean> queryXmjyzjAll() {
        return queryList("queryXmjyzjAll");
    }

    @Override
    public List<BaseBean> queryJxcsxmZjtjAll() {
        return queryList("queryJxcsxmZjtjAll");
    }

    @Override
    public List<Xmtjbean> queryXmztAll() {
        return queryList("queryXmztAll");
    }

    @Override
    public boolean addTaskLog(PartyAccessBean partyAccessBean) {
        int num = insert("addTaskLog", partyAccessBean);
        if (num > 0) {
            return true;
        }
        return false;
    }
}
